package com.xhsj.user.pms.oareply.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhsj.user.pms.oareply.vo.CorrectionFileListVo;
import org.apache.ibatis.annotations.Mapper;
import com.xhsj.user.pms.oareply.entity.TbPamPatentOaCorrectionFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * <p>
 * 专利OA补正文件 Mapper 接口
 * </p>
 *
 * @author liuqinghua
 * @since 2021-07-28
 */
@Mapper
public interface TbPamPatentOaCorrectionFileMapper extends BaseMapper<TbPamPatentOaCorrectionFile> {

    // 根据业务id删除
    int deleteByDataId(@Param("dataId") Long dataId);

    IPage<CorrectionFileListVo> findCorrectionFileList(Page<CorrectionFileListVo> page1, @Param("dataId") Long dataId);

    List<CorrectionFileListVo> findCorrectionFileList(@Param("dataId") Long dataId);

    /**
     * @Description: 根据id删除
     * @Author: liuqinghua
     * @Date: 2021/8/3
     */
    void delById(@Param(value = "id") Long id);
}
